package com.decent.ejfadmin.config;

import com.decent.ejfadmin.job.Job;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * describe:
 *
 * @author JunLei He
 * @date 2018年09月05日
 */
@Configuration
@ConditionalOnExpression("${scheduled.enabled:true}")
public class JobConfig {

    @Bean
    public Job job() {
        return new Job();
    }
}
